sequenceDiagram
participant U as User
participant L as LLM
participant S as Your System
participant T as Tool Function
U->>L: "What is 15% of 500?"
L->>S: tool_call: execute_calculation(multiply, 500, 0.15)
S->>T: execute_calculation(multiply, 500, 0.15)
T-->>S: {"result": 75.0, "success": true}
S->>L: tool result: 75.0
L->>U: "15% of 500 is 75."